package com.xy.p2p.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.xy.common.page.Pagination;
import com.xy.common.security.BadCredentialsException;
import com.xy.common.security.UsernameNotFoundException;
import com.xy.core.service.BaseService;
import com.xy.p2p.model.Tuser;

public abstract interface TuserService extends BaseService<Tuser> {
	public abstract boolean checkExist(String paraName, String paraValue);

	public abstract List<Tuser> getTuser(Map<String, Object> map);

	public abstract Pagination getTuserByPage(Map<String, Object> map, int pageNo,
			int pageSize);

	public Tuser login(HttpServletRequest request, String username,
			String password) throws UsernameNotFoundException,
			BadCredentialsException;
}